<template>
	<!-- <office-pdf :src="pdfSrc" @rendered="handlePdfRender" style="height: 100%"></office-pdf> -->
	<office-docx :src="pdfSrc" :options="officeOptions" @rendered="handlePdfRender" style="height: 100%"></office-docx>
</template>

<script>
import officePdf from '@vue-office/pdf';
import officeDocx from '@vue-office/docx';
import officeExcel from '@vue-office/excel';
export default {
	components: { officePdf, officeDocx, officeExcel },
	data() {
		return {
			pdfSrc: '/test.docx',
			officeOptions: {
				toolbar: true
			}
		};
	},
	methods: {
		handlePdfRender(data) {
			console.log(data);
		}
	}
};
</script>

<style scoped></style>
